package io.bba.boot.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.bba.boot.app.dto.CrawlerDataDto;
import io.bba.boot.app.entity.CrawlerData;
import io.bba.boot.app.query.CrawlerDataQuery;
import io.bba.boot.app.vo.CrawlerDataVo;
import io.bba.boot.app.query.AppCrawlerDataQuery;
import io.bba.boot.app.vo.AppCrawlerDataVo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 采集数据 Mapper 接口
 *
 * @author zs
 * @since 2024-03-19
 */
@Mapper
public interface CrawlerDataMapper extends BaseMapper<CrawlerData> {

    /**
     * 采集数据详情
     *
     * @param id
     * @return
     */
    CrawlerDataVo getCrawlerDataById(Long id);

    /**
     * 采集数据分页列表
     *
     * @param query
     * @return
     */
    List<CrawlerDataVo> getCrawlerDataPage(CrawlerDataQuery query);

    /**
     * App采集数据详情
     *
     * @param id
     * @return
     */
    AppCrawlerDataVo getAppCrawlerDataById(Long id);

    /**
     * App采集数据分页列表
     *
     * @param query
     * @return
     */
    List<AppCrawlerDataVo> getAppCrawlerDataPage(AppCrawlerDataQuery query);

    /**
     *
     * @param list
     * @return
     */

    boolean batchInsert(List<CrawlerData> list);
}
